<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language=javascript src="dialog.js"></script>
<link href='dialog.css' type='text/css' rel='stylesheet'>
<TITLE>Flash动画属性</TITLE>

<script language="javascript">

function ReturnValue(){
	var sFromUrl = d_fromurl.value;
	var sWidth = d_width.value;
	var sHeight = d_height.value;
	
	var sHTML = "<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
	if (sWidth!="") sHTML+=" width="+sWidth;
	if (sHeight!="") sHTML+=" height="+sHeight;
	sHTML+="><PARAM NAME=movie VALUE='"+sFromUrl+"'><PARAM NAME=quality VALUE=high><embed src='"+sFromUrl+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'";
	if (sWidth!="") sHTML+=" width="+sWidth;
	if (sHeight!="") sHTML+=" height="+sHeight;
	sHTML+=">"+sFromUrl+"</embed></OBJECT>";
	
	dialogArguments.insertHTML(sHTML);

	window.returnValue = null;
	window.close();
}

function ok(){
	d_width.value=ToInt(d_width.value);
	d_height.value=ToInt(d_height.value);
	
	ReturnValue();
}

function InitDocument(){
	adjustDialog();
}
function choosepic(t){
	if(t==1){
		d_checkfromurl.checked=true;
		d_checkfromurl2.checked=false;
	}else {
		d_checkfromurl.checked=false;
		d_checkfromurl2.checked=true;
		window.open("../../../do/upfile.php?dir=article","","width=350,height=50,top=200,left=400")
	}
}
function upfile(url,name,size,p,weburl){
	d_fromurl.value=weburl;
}
</script>
</HEAD>

<BODY onload="InitDocument()">
<table border=0 cellpadding=0 cellspacing=5 id=tabDialogSize><tr><td>


<table border=0 cellpadding=0 cellspacing=0 align=center>
<tr>
	<td>
	<fieldset>
	<legend>Flash来源</legend>
	<table border=0 cellpadding=5 cellspacing=0 width="100%">
	<tr><td>

		          <table border=0 cellpadding=0 cellspacing=2 width="100%">
                    <tr> 
                      <td noWrap> 
                        <input type=radio id="d_checkfromurl" value="1" checked onClick="choosepic(1)">
                        <label for=d_checkfromurl>网络</label>: 
                        <input type=radio id="d_checkfromurl2" value="2" onClick="choosepic(2)">
                        <label for=d_checkfromurl>本地上传</label> </td>
                    </tr>
                    <tr> 
                      <td noWrap> 
                        <input type=text id='d_fromurl' style='width:100%' size=10 value='http://'>
                      </td>
                    </tr>
                  </table>

	</td></tr>
	</table>
	</fieldset>
	</td>
</tr>
<tr><td height=5></td></tr>
<tr>
	<td>
	<fieldset>
	<legend>显示效果</legend>
	<table border=0 cellpadding=5 cellspacing=0 width="100%">
	<tr><td>

		<table border=0 cellpadding=0 cellspacing=2 width="100%">
		<tr>
			<td noWrap width="20%">显示宽度:</td>
			<td noWrap width="29%"><input style="width:80px" type=text id=d_width size=10 value="" ONKEYPRESS="event.returnValue=IsDigit();" maxlength=4></td>
			<td width="2%">&nbsp;</td>
			<td noWrap width="20%">显示高度:</td>
			<td noWrap width="29%"><input style="width:80px" type=text id=d_height size=10 value="" ONKEYPRESS="event.returnValue=IsDigit();" maxlength=4></td>
		</tr>
		</table>

	</td></tr>
	</table>
	</fieldset>
	</td>
</tr>
<tr><td height=5></td></tr>
<tr><td noWrap align=right><input type=submit value='确定' id=Ok onclick="ok()">&nbsp;&nbsp;<input type=button value='取消' onclick="window.close();"></td></tr>
</table>


</td></tr></table>

</body>
</html>
